Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
==2.9.0
->==5.0.1
Release Notes
maxmind/GeoIP2-python (geoip2)
v5.0.1
: 5.0.1Compare Source
ip_address
in theTraits
record to beNone
again. Theprimary use case for this is from the
minfraud
package.v5.0.0
: 5.0.0Compare Source
raw
attribute on the model classes has been replacedwith a
to_dict()
method. This can be used to get a representation ofthe object that is suitable for serialization.
ip_address
property on the model classes now always returnsa
ipaddress.IPv4Address
oripaddress.IPv6Address
.locales
andip_address
to be keyword arguments.geoip2.mixins
has been made internal. This normally would nothave been used by external code.
version, please use an earlier release.
metro_code
ongeoip2.record.Location
has been deprecated. Thecode values are no longer being maintained.
locales
keyword argument now allowsany sequence of strings rather than only list of strings.
v4.8.1
: 4.8.1Compare Source
setuptools
was incorrectly listed as a runtime dependency. This hasbeen removed. Pull request by Mathieu Dupuy. GitHub #174.
v4.8.0
: 4.8.0Compare Source
version, please use an earlier release.
is_anycast
attribute was added togeoip2.record.Traits
.This returns
True
if the IP address belongs to ananycast network <https://en.wikipedia.org/wiki/Anycast>
_.This is available for the GeoIP2 Country, City Plus, and Insights web services
and the GeoIP2 Country, City, and Enterprise databases.
v4.7.0
: 4.7.0Compare Source
version, please use an earlier release.
v4.6.0
: 4.6.0Compare Source
AddressNotFoundError
class now has anip_address
attributewith the lookup address and
network
property for the empty networkin the database containing the IP address. These are only available
when using a database, not the web service. Pull request by illes.
GitHub #130.
v4.5.0
: 4.5.0Compare Source
added for the GeoIP2 ISP and Enterprise databases as well as the GeoIP2
City and Insights web services.
mobile_country_code
andmobile_network_code
attributes were added togeoip2.model.ISP
for the GeoIP2 ISP database and
geoip2.record.Traits
for theEnterprise database and the GeoIP2 City and Insights web services.
We expect this data to be available by late January, 2022.
v4.4.0
: 4.4.0Compare Source
geoip2.database
is now explicitly defined bysetting
__all__
.metadata()
method onReader
is nowmaxminddb.reader.Metadata
rather than a union type.v4.3.0
: 4.3.0Compare Source
py.typed
file was not being added to the sourcedistribution. It is now explicitly specified in the manifest.
Reader
constructor havebeen expanded to match those specified by
maxmindb.open_database
. Inparticular,
os.PathLike
andIO
have been added.metadata()
method onReader
. Itwill return a
maxminddb.extension.Metadata
if the C extension is beingused.
v4.2.0
: 4.2.0Compare Source
the
proxy
parameter to theAsyncClient
orClient
constructor.v4.1.0
: 4.1.0Compare Source
is_residential_proxy
attribute togeoip2.model.AnonymousIP
and
geoip2.record.Traits
.HTTPError
now provides the decoded response content in thedecoded_content
attribute. Requested by Oleg Serbokryl. GitHub #95.v4.0.2
: 4.0.2Compare Source
py.typed
file per PEP 561. Reported by Árni Már Jónsson.v4.0.1
: 4.0.1Compare Source
README.md
. No substantivechanges.
v3.0.0
: 3.0.0Compare Source
geoip2.record.*
classes have been refactored toimprove performance. This refactoring may break classes that inherit from
them. The public API should otherwise be compatible.
network
attribute was added togeoip2.record.Traits
,geoip2.model.AnonymousIP
,geoip2.model.ASN
,geoip2.model.ConnectionType
,geoip2.model.Domain
,and
geoip2.model.ISP
. This is anipaddress.IPv4Network
or anipaddress.IPv6Network
. This is the largest network where all of thefields besides
ip_address
have the same value. GitHub #79.is_anonymous_vpn
andis_hosting_provider
- to be more descriptive.user_count
trait for the GeoIP2 Precision webservice.static_ip_score
attribute togeoip2.record.Traits
forGeoIP2 Precision Insights. This is a float which indicates how static or dynamic
an IP address is.
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.